package com.tanhua.recommend.msg;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * Created by 景银泰
 * date 2020-11-23 18:23
 * Description :
 * Version :
 */
@Component
@RocketMQMessageListener(topic = "test01", consumerGroup = "test")
public class Test01 implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        System.out.println(s);
    }
}
